package com.daylightrobbery.server.packet.gameobjects;

import java.util.concurrent.ThreadLocalRandom;

public class TreasureBoxDescription {

    private int money; //金币
    private int tickets; // 点卷

    public static TreasureBoxDescription GetRandomTB(int level){
        int m = ThreadLocalRandom.current().nextInt(100, 300) * level;
        m -= m % 10;
        int t = ThreadLocalRandom.current().nextInt(10, 20) * level;
        t -= t % 10;
        return new TreasureBoxDescription()
                .setMoney(m)
                .setTickets(t);
    }

    public int getMoney() {
        return money;
    }

    public TreasureBoxDescription setMoney(int money) {
        this.money = money;
        return this;
    }

    public int getTickets() {
        return tickets;
    }

    public TreasureBoxDescription setTickets(int tickets) {
        this.tickets = tickets;
        return this;
    }


}
